Sets the binding if the dependency property has not been set previously and the style of the element don't set the property.
Namespace:
C1.SilverlightAssembly: C1.Silverlight (in C1.Silverlight.dll)
Syntax
C# |
---|
public static void SetBinding<T>( this FrameworkElement target, DependencyProperty dp, T source, Expression<Func<T, Object>> expr ) |
Visual Basic |
---|
<ExtensionAttribute> _ Public Shared Sub SetBinding(Of T) ( _ target As FrameworkElement, _ dp As DependencyProperty, _ source As T, _ expr As Expression(Of Func(Of T, Object)) _ ) |
Parameters
- target
- Type: System.Windows..::..FrameworkElement
The target.
- dp
- Type: System.Windows..::..DependencyProperty
The dependency property which will be set.
- source
- Type: T
The source.
- expr
- Type: System.Linq.Expressions..::..Expression<(Of <(<'Func<(Of <(<'T, Object>)>)>>)>)>
Expression that returns a property of the source object.
Type Parameters
- T
- Type of the source